<template>
    <view class="editCommunity">
        <view class="search">
            <u-search placeholder="请输入小区名字..." bgColor="#F8F8FA" :showAction="false" fontSize="24rpx"
                searchIconSize="20" color="#B1B1B1" placeholderColor="#B1B1B1" shape="square"></u-search>
        </view>
        <UserLabel v-for="item in communityList" :item="item" width="148rpx" radius="5"
            handle="查看" @clickView="viewCommunityPer"></UserLabel>
    </view>
</template>

<script lang="ts" setup>
import UserLabel from '../components/UserLabel/index.vue';

import { handleNavigateTo } from '@/plugins/uniApp'

const communityList = ([
    { name: '春波小区', address: '滨江区春波路646号', num: '166人已关注' },
    { name: '春波小区', address: '滨江区春波路646号', num: '166人已关注' }
])

const viewCommunityPer = () => {
    handleNavigateTo('../communityPerItem/index')
}
</script>

<style lang="scss" scoped>
.editCommunity {
    padding: 20rpx;
}
</style>